import MissionTransport.*;

public class Main {
    public static void main(String[] args) {
        Approver banzhang=new Banzhang("赵班长");
        Approver paizhang=new Paizhang("钱排长");
        Approver yingzhang=new Yingzhang("孙营长");
        Approver congress=new Congress();
        banzhang.setSuccessor(paizhang);
        paizhang.setSuccessor(yingzhang);
        yingzhang.setSuccessor(congress);
        banzhang.processRequest(new MissionRequest(10));
        System.out.println("-----------------------------------------------");
        banzhang.processRequest(new MissionRequest(80));
        System.out.println("-----------------------------------------------");
        banzhang.processRequest(new MissionRequest(300));
    }
}